{#include file="admin_header.htm"#}
{#include file="admin_article_nav.htm"#}
<script type="text/javascript" src="js/selectAll.js"></script>
<div class="admin_main_nr_box">
  <table width="700" border="0" cellspacing="8" cellpadding="0" class="link_lan">
    <tr>
      <td width="97" height="22" align="center" background="images/article_category_bg.jpg" style="background-repeat:no-repeat">按文章分類</td>
      <td>
<div style=" float:left; width:70px; height:22px; line-height:22px; margin-right:5px; text-align:center;{#if $Parent eq ""#}background-color: #DFEDF7{#/if#}"><a href="?Parent=&focos={#$focos#}">不限分類</a></div>
{#section name=get_article_Parent loop=$get_article_Parent#}
<div style=" float:left; width:70px; height:22px; line-height:22px; margin-right:5px; text-align:center;{#if $Parent==$get_article_Parent[get_article_Parent].id#}background-color: #DFEDF7{#/if#}"><a href="?Parent={#$get_article_Parent[get_article_Parent].id#}&focos={#$focos#}">{#$get_article_Parent[get_article_Parent].categoryname#}</a></div>
{#/section#}
<div class="clear"></div></td>
    </tr>
	{#if $get_article_Parent_list <> ""#}
    <tr>
      <td width="97" height="22" align="center" background="images/article_category_bg.jpg"><span style="background-repeat:no-repeat">下屬分類</span></td>
      <td>
	  <div style=" float:left; width:70px; height:22px; line-height:22px; margin-right:5px; text-align:center;{#if $type_id eq ""#}background-color: #DFEDF7{#/if#}"><a href="?type_id=&Parent={#$Parent#}&Parent={#$focos#}">不限小類</a></div>
	  {#section name=get_article_Parent_list loop=$get_article_Parent_list#}
	  <div style=" float:left; width:70px; height:22px; line-height:22px; margin-right:5px; text-align:center;{#if $type_id==$get_article_Parent_list[get_article_Parent_list].id#}background-color: #DFEDF7{#/if#}"><a href="?type_id={#$get_article_Parent_list[get_article_Parent_list].id#}&Parent={#$Parent#}&focos={#$focos#}">{#$get_article_Parent_list[get_article_Parent_list].categoryname#}</a></div>
{#/section#}
	 <div class="clear"></div> </td>
    </tr>
	{#/if#}
    <tr>
      <td width="97" height="22" align="center" background="images/article_category_bg.jpg"><span style="background-repeat:no-repeat">按文章屬性</span></td>
      <td><div style=" float:left; width:70px; height:22px; line-height:22px; margin-right:5px; text-align:center;{#if $focos eq ""#}background-color: #DFEDF7{#/if#}"><a href="?type_id={#$type_id#}&Parent={#$Parent#}&focos=">不限屬性</a></div>
	   {#section name=get_article_property loop=$get_article_property#}
	  <div style=" float:left; width:70px; height:22px; line-height:22px; margin-right:5px; text-align:center;{#if $focos==$get_article_property[get_article_property].id#}background-color: #DFEDF7{#/if#}"><a href="?type_id={#$type_id#}&Parent={#$Parent#}&focos={#$get_article_property[get_article_property].id#}">{#$get_article_property[get_article_property].categoryname#}</a></div>
{#/section#}
	  </td>
    </tr>
  </table>
  <table width="700" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><table width="150" border="0" cellspacing="2" cellpadding="0">
          <form action="admin_article.php" method="post" name="form3" id="form3">
            <tr>
              <td width="41">每頁：</td>
              <td width="20"><input name="perpage" type="text" id="perpage"  style="width:30px; height:15px; color:#666666; border:1px #97ADCE solid; text-align:center"  onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');" value="{#$perpage#}" maxlength="3"onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/></td>
              <td width="81"><input  style="font-family:Arial; font-size:10px; height:22px;" type="submit" name="Submitok"  value="OK" /></td>
            </tr>
          </form>
      </table></td>
      <td width="61%"><table width="300"  border="0" align="right" cellpadding="0" cellspacing="2">
          <form action="admin_article.php" method="post" name="form2" id="form2">
            <tr>
              <td width="112" align="right">&nbsp;</td>
              <td width="130"><input name="key" type="text" id="key" style=" width:130px; height:15px; font-size:12px; background-image:url(images/zoom.png); background-repeat:no-repeat; padding-left:18px;" value="{#$key#}" maxlength="6" /></td>
              <td width="50"><input name="Submit4" type="submit"  value="搜索" style="height:24px; width:50px; font-size:12px;" /></td>
            </tr>
          </form>
      </table></td>
    </tr>
  </table>
  <form id="form1" name="form1" method="post" action="admin_article_save.php?act=migrate_article">
  <table width="700" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
    <tr>
      <td width="95" height="26" bgcolor="#D0E2F7" style="padding-left:4px;">
      <input type="checkbox" name="chkAll" title="全選/反選" onClick="selectAll()"/>
      全選/反選</td>
      <td bgcolor="#D0E2F7" style="padding-left:15px;">文章標題</td>
      <td width="90" align="center" bgcolor="#D0E2F7"> 屬性 </td>
      <td width="40" align="center" bgcolor="#D0E2F7" >排序</td>
      <td width="100" align="center" bgcolor="#D0E2F7"  >添加日期</td>
      <td width="100" align="center" bgcolor="#D0E2F7"  >操作</td>
    </tr>
  </table>
    <table width="700" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="link_bk">
      {#section name=article loop=$article_list#}
      <tr class="row">
      <td width="26" align="center" style="border-bottom:1px #CCCCCC solid; padding-left:2px;">
        <input name="y_id[]" type="checkbox" id="y_id" value="{#$article_list[article].id#}"  onclick="javascript:chkRow(this);"/>      </td>
        <td height="32" style="border-bottom:1px #CCCCCC solid">
		<a href="?type_id={#$article_list[article].type_id#}&Parent={#$article_list[article].ParentID#}">[{#$article_list[article].type_id_name#}]</a>
		 {#$article_list[article].url_title#}
		 {#if $article_list[article].is_display<>"1"#}
		 <span style="color:#999999">[已屏蔽]</span>
		 {#/if#}
		 </td>
        <td width="90" align="center" style="border-bottom:1px #CCCCCC solid">{#$article_list[article].focos#}</td>
        <td width="40" align="center" style="border-bottom:1px #CCCCCC solid">{#$article_list[article].article_order#}</td>
        <td width="100" align="center" style="border-bottom:1px #CCCCCC solid">{#$article_list[article].addtime|date_format:"%Y-%m-%d"#}</td>
        <td width="100" align="center" style="border-bottom:1px #CCCCCC solid"><a href="?act=article_edit&id={#$article_list[article].id#}">修改</a> <a href="admin_article_save.php?act=migrate_article&y_id={#$article_list[article].id#}" onclick="return confirm('你確定要刪除嗎？')">刪除</a></td>
      </tr>
      {#sectionelse#}
  <tr>
    <td height="50" colspan="6" align="center">沒有任何記錄！</td>
  </tr>
      {#/section#}
    </table>
	<table width="700" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><span style="width:300px; height:40px; float:left; padding-top:10px">
          <input type="submit" name="del_Submit" value="刪除所選" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'" onclick="return confirm('你確定要刪除嗎？')"/>
          &nbsp;&nbsp;
          <input type="button" name="Submit22" value="添加文章" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'" onclick="window.location='?act=2'"/>
        </span></td>
        <td><table width="380" border="0" align="right" cellpadding="0" cellspacing="2">
          <tr>
            <td width="300" align="right">將所選項目轉移至： </td>
            <td align="right"><select name="type_id" id="type_id" style="font-size:12px;">
<option value="">請選擇目標分類：</option>
{#section name=category loop=$category_list#}
<option value="{#$category_list[category].id#}" >{#$category_list[category].categoryname#}</option>
{#section name=category_f loop=$category_list[category].category#}		   
<option value="{#$category_list[category].category[category_f].id#}">&nbsp;&nbsp;|-{#$category_list[category].category[category_f].categoryname#}</option>          
{#/section#}{#/section#}
</select></td>
            <td><input name="migrate" type="submit"  value="執行" style="height:24px; width:50px; font-size:12px;" /></td>
          </tr>
        </table></td>
      </tr>
    </table>
    </form>
	    <table width="700" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table border="0" align="center" cellpadding="0" cellspacing="0" class="link_page">
          <tr>
            <td height="40" align="center" >{#$page#}</td>
          </tr>
        </table></td>
      </tr>
    </table>
  </div>
{#include file="admin_footer.htm"#}
</body>
</html>
